﻿using System;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using WeChat.Entity;
using WeChat.Entity.Enum;

namespace WeChat.EntityFramework.Mapping
{
    /// <summary>
    /// 角色 Mapping
    /// </summary>
    public class RolesMapping : WeChatBaseMap<Roles, int>
    {
        public override void MapperConfigure(EntityTypeBuilder<Roles> builder)
        {
            builder.HasData(new Roles()
            {
                Id = 1,
                CreatedTime = DateTime.Now,
                IsActivate = true,
                RolesType = RolesType.SuperAdmin
            });
        }
    }
}
